#!/bin/bash
service cron start
current_time=$(date "+%Y%m%d%H%M%S")
celery -A run:celery_app worker -l info -Q notify_scanv >>/var/log/service/celery_scanv_$current_time.log 2>&1 &
celery -A run:celery_app beat -l info -s /var/log/service/celerybeat-schedule >>/var/log/service/celery_beat.log 2>&1 &
# 启动推送任务
python3.8 manage.py output >>/var/log/service/output_scanv_$current_time.log 2>&1 &
# 启动uwsgi
uwsgi --ini uwsgi.ini
